/**
 * Created with  SublimeText
 * @Author:      Lyle
 * @DateTime:    2016-12-20 22:31:10
 * @Description: 
 */

import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import Center from '../components/Center'
import * as CenterActions from '../actions/center'

function mapStateToProps(state) {
    return {
        centerState: state.centerState
    }
}

function mapDispatchToProps(dispatch) {
    return bindActionCreators(CenterActions, dispatch)
}

export default connect(mapStateToProps, mapDispatchToProps)(Center)
